﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SkuClass.aspx.cs" Inherits="WMS6.Web.Configuration.SkuClass" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SkuClass</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
                //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        
        function newSkuClass()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "SkuClass.aspx?from="+ escape(from);
            return false;
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
        
    </script>
</head>
<body>
    <form id="F2091" runat="server">
    <div>
     <asp:ScriptManager ID="ScriptManager1" runat="server" />
     
     <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="货品分类" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button"  Enabled="False" Text="返回" 
                            onclick="btnGoBack_Click" meta:resourcekey="btnGoBack"   /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button"  Enabled="False" 
                            Text="新建"  AccessKey="n" OnClientClick="newSkuClass();" 
                            meta:resourcekey="btnNew" /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button"  Enabled="False" Text="保存" 
                            AccessKey="s" onclick="btnSave_Click" 
                            meta:resourcekey="btnSave"  /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button"  Enabled="False" 
                            Text="删除"  AccessKey="d"  OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" 
                            onclick="btnDelete_Click" meta:resourcekey="btnDelete"  /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button"  Enabled="False" Text="复制" 
                            AccessKey="c" onclick="btnCopy_Click" 
                            meta:resourcekey="btnCopy"  /></td>
                </tr>
            </table>
        </div>
        
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1"></div>
                    </div>
                    <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">货品分类</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1"></div>
                    </div>
                    
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2"></div>
                    </div>
                    <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2)" id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                            meta:resourcekey="one2">自定义字段</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2"></div>
                    </div>
                </div>
        
                <div id="div_content">
                     <div id="con_one_1" style="display: block;">
                         <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                             <tr>
                                 <td width="180">
                                     <asp:Label ID="lblSkuClassID" runat="server" CssClass="label" Text="货品分类代码" 
                                         meta:resourcekey="lblSkuClassID"></asp:Label><span class="must_input">*</span>
                                 </td>
                                 <td width="180">
                                     <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" 
                                         meta:resourcekey="lblOwnerID"></asp:Label><span class="must_input">*</span>
                                 </td>
                                 
                             </tr>
                             <tr>
                                 <td>
                                     <asp:TextBox ID="txtSkuClass" runat="server" CssClass="textbox" MaxLength="25" 
                                         meta:resourcekey="txtSkuClass"></asp:TextBox>
                                 </td>
                                 <td>
                                     <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" MaxLength="20" 
                                         meta:resourcekey="txtOwnerID" ></asp:TextBox><img src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item" class="img" onclick="selectOwner();"/>
                                 </td>
                             </tr>
                             <tr>
                                <td><asp:Label ID="lblDescr" runat="server" CssClass="label" Text="分类描述" 
                                        meta:resourcekey="lblDescr"></asp:Label></td>
                                <td>&nbsp;</td>
                             </tr>
                             <tr>
                                <td><asp:TextBox ID="txtDescr" runat="server" CssClass="textbox" MaxLength="50" 
                                        meta:resourcekey="txtDescr" ></asp:TextBox></td>
                                <td>&nbsp;</td>
                             </tr>
                             
                             <tr>
                                <td><asp:Label ID="lblDescr2" runat="server" CssClass="label" Text="分类描述2" 
                                        meta:resourcekey="lblDescr2"></asp:Label></td>
                                <td>&nbsp;</td>
                             </tr>
                             <tr>
                                <td><asp:TextBox ID="txtDescr2" runat="server" CssClass="textbox" MaxLength="50" 
                                        meta:resourcekey="txtDescr2" ></asp:TextBox></td>
                                <td>&nbsp;</td>
                             </tr>
                             
                             <tr>
                                 <td>
                                    <asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="启用" 
                                         Checked="True" meta:resourcekey="chkIsActive" />
                                 </td>
                                 <td>&nbsp;</td>
                             </tr>
                             <tr style="height:10px;">
                             </tr>
                         </table>
                    </div>
                    
                    <div id="con_one_2" style="display:none;" >
                        <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td><asp:Label ID="lblUdf1" runat="server" Text="自定义01" CssClass="label" 
                                        meta:resourcekey="lblUdf1"></asp:Label></td>
                                <td><asp:Label ID="lblUdf2" runat="server" Text="自定义02" CssClass="label" 
                                        meta:resourcekey="lblUdf2"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" MaxLength="10" 
                                        meta:resourcekey="txtUdf1"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" MaxLength="10" 
                                        meta:resourcekey="txtUdf2"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblUdf3" runat="server" Text="自定义03" CssClass="label" 
                                        meta:resourcekey="lblUdf3"></asp:Label></td>
                                <td><asp:Label ID="lblUdf4" runat="server" Text="自定义04" CssClass="label" 
                                        meta:resourcekey="lblUdf4"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" MaxLength="10" 
                                        meta:resourcekey="txtUdf3"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" MaxLength="10" 
                                        meta:resourcekey="txtUdf4"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblUdf5" runat="server" Text="自定义05" CssClass="label" 
                                        meta:resourcekey="lblUdf5"></asp:Label></td>
                                <td><asp:Label ID="lblUdf6" runat="server" Text="自定义06" CssClass="label" 
                                        meta:resourcekey="lblUdf6"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" MaxLength="10" 
                                        meta:resourcekey="txtUdf5"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" MaxLength="15" 
                                        meta:resourcekey="txtUdf6"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblUdf7" runat="server" Text="自定义07" CssClass="label" 
                                        meta:resourcekey="lblUdf7"></asp:Label></td>
                                <td><asp:Label ID="lblUdf8" runat="server" Text="自定义08" CssClass="label" 
                                        meta:resourcekey="lblUdf8"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" MaxLength="15" 
                                        meta:resourcekey="txtUdf7"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" MaxLength="15" 
                                        meta:resourcekey="txtUdf8"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="lblUdf9" runat="server" Text="自定义09" CssClass="label" 
                                        meta:resourcekey="lblUdf9"></asp:Label></td>
                                <td><asp:Label ID="lblUdf10" runat="server" Text="自定义10" CssClass="label" 
                                        meta:resourcekey="lblUdf10"></asp:Label></td>
                            </tr>
                            <tr>
                                <td><asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" MaxLength="15" 
                                        meta:resourcekey="txtUdf9"></asp:TextBox></td>
                                <td><asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" MaxLength="15" 
                                        meta:resourcekey="txtUdf10"></asp:TextBox></td>
                            </tr>
                            <tr style="height:10px;">
                             </tr>
                        </table>
                    </div>
              </div> 
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
        <input type="hidden" id="hdnFrom" runat="server" />
    </form>
</body>
</html>
